
<%@page contentType="text/html" pageEncoding="ISO-8859-15"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
        <title>Error page</title>
    </head>
    
    <link rel="stylesheet" href="./css/uoc.css" type="text/css" media="print" />
   
   <style type="text/css" media="all">
      @import url("css/uoc.css");  @import url("css/styles.css");
    </style>
    
    <body>
       
	        <%if(request.getSession().getAttribute("ERROR")!=null){ %>
	        
	        <div class="mdurgente">
				<div class="urgente  mod  noborder  bggris">
						<!-- <h3>ERROR</h3> -->
						<p>
							<strong>
								<%=request.getSession().getAttribute("ERROR") %>
								<br><br>
								<br><br>
								<br><br>
								<!-- 
								<a href="Link.do?method=closeSession"  > Continua ... </a>
								 -->		
							</strong>
							
						</p>
					
					<form name="formlogin" id="formlogin" method="get" action="https://cv.uoc.edu/cgi-bin/uoc">
				     	
				     	<!-- Comun para todas la maquinas -->
				      	<input name="appid" value="UOC" type="hidden"> 
						<input name="nil" value="XXXXXX" type="hidden"> 
						<input name="lb" value="a" type="hidden"> 
						<input name="url" value="http://cv.uoc.edu" type="hidden"> 
						<input name="realm" value="Biblioteca" type="hidden"> 
				 		
				 		<!-- En maquina localhost -->  
							<input name="dr" value="http://localhost:8080/Struts1/login.do?" type="hidden"> 
							<input name="urlRedirect" type="hidden" value="http://localhost:8080/Struts1/" /> 
						 
				 		<!-- En la maquina de test "http://adquisicions.biblioteca.test.uoc.edu"  --> 
						<!--	
							<input name="dr" value="http://adquisicions.biblioteca.test.uoc.edu/Adquisicions/login.do?" type="hidden">
							<input name="urlRedirect" type="hidden" value="http://adquisicions.biblioteca.test.uoc.edu/Adquisicions/" /> 
						-->      
				      
				      
				        <table border="0" cellpadding="5" align="center">
				          <tr>
				            <td class="standard" align="right"><label for="tlogin_email"><strong>Nom d'usuari:</strong></label></td>
				            <td><input name="l" id="l" type="text"> </td>
				          </tr>        
				          <tr>
				            <td class="standard" align="right"><label for="tlogin_password"><strong>Clau:</strong></label></td>
				            <td><input name="p" id="p" maxlength="38" type="password"> </td>
				          </tr>      
				          <tr>
				            <td align="center" colspan="2">
								<input type="submit" value="login" /> 
				            </td>
				          </tr>
				          <tr>
				            <td align="center" colspan="2">
				             		<a class="novetat" title="Has oblidat la teva clau?" target="_blank" href="http://www.uoc.edu/web/cat/contrassenya_oblidada.html">Has oblidat la teva clau?</a>
				            </td>
				          </tr>
				        </table>
				      </form> 	
						
						
						<br><br>
						<br><br>
						<br><br>
						<br><br>
						<br><br>
						<br><br>
						<br><br>
						<br><br>
						<br><br>
						
				</div>
			</div>
	        
	        <%request.getSession().removeAttribute("ERROR");}%>
	        
	        
	    
	        
       
       
  		

		
        
        
    </body>
</html>
